-
Notifications
You must be signed in to change notification settings - Fork 381
[a11y] voice message improvements #5980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… the user start playing a pending voice message.
… the user use the keyboard to focus the send button and press the space bar to perform a click.
…en deleting a pending voice message.
|
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5980 +/- ##
===========================================
+ Coverage 81.33% 81.35% +0.01%
===========================================
Files 2545 2545
Lines 67760 67774 +14
Branches 8684 8682 -2
===========================================
+ Hits 55113 55136 +23
+ Misses 9429 9421 -8
+ Partials 3218 3217 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ganfra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One remark regarding naming.
Also the code is bit hard to follow as we are now checking the same state in multiple places...
| Spacer(modifier = Modifier.width(12.dp)) | ||
| } | ||
| is MessageComposerMode.EditCaption -> { | ||
| Spacer(modifier = Modifier.width(19.dp)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's not new but those spacings are a bit...weird?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, not new, and I think this matches the design for those composer modes.
| * Temporary Figma : https://www.figma.com/design/Ni6Ii8YKtmXCKYNE90cC67/Timeline-(new)?node-id=2274-39944&m=dev | ||
| */ | ||
| @Composable | ||
| internal fun SendButton( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like it shouldn't be called a Button anymore, as it's just an Icon. Can you rename? This one and all the others Button.
I agree, but this is the price to pay to have only one |
|
@ganfra , PR updated, thanks for the remarks. |
|
ganfra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, it's better like this!



Content
Improve IconButton on the composer area regarding accessibility focus when the screen reader is enabled and when the user is navigating with a keyboard.
Motivation and context
Closes https://github.com/element-hq/customer-success/issues/556
Screenshots / GIFs
Tests
Using the emulator
When a voice message as been recorded but not sent, you should be able to navigate to the play icon and press the space bar several times to start/pause the playback without losing the focus
When a voice message as been recorded but not sent, you should be able to navigate to bin icon and press the space bar to delete the pending voice message without losing the focus, which is still on the same icon area. The icon is now the "Attachement" icon.
Using a real device with screen reader enabled
You should be able to perform the same actions using a real device with screen reader enabled.
Tested devices
Checklist